<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1.0" />
        <title>分类新增</title>
        <link rel="stylesheet" th:href="@{/Semantic-UI-CSS-master/semantic.min.css}"/>
       <link rel="stylesheet" th:href="@{/lib/editormd/css/editormd.min.css}" />
        <link rel="stylesheet" th:href="@{/css/me.css}"/>
	</head>
	<body>
        <div class="bbb">
        <!-- 导航 -->
        <nav class="ui inverted attached segment m-padded-tb-min">
           <div class="ui container">
             <div class="ui inverted secondary stackable menu">
                 <h2 class="ui teal header item">管理后台</h2>
                 <a href="/admin/blogs" class="item m-item m-mobile-hide"><i class="home icon"></i>博客</a>
                 <a href="/admin/types" class="active item m-item m-mobile-hide"><i class="idea icon"></i> 分类</a>
                 <a href="/admin/tags" class="item m-item m-mobile-hide"><i class="tags icon"></i> 标签</a>
                 <a href="/admin/blogs/file" class="item m-item m-mobile-hide"><i class="tags icon"></i> 文件上传</a>
                <div class="right item">
                    <div class="ui dropdown item">
                 <div class="text">
                     <img class="ui avatar image m-img-mid" src="../img/logo-icon-3.png" />
                    韦建韩
                 </div>
                 <i class="dropdown icon"></i>
                 <div class="menu">
                     <a href="/admin/loginOut" class="item">注销</a>
                     
                 </div>
                </div>
                </div>
             </div>  
           </div>
           <a href="#" class="ui menu toggel black icon button m-right-top m-mobile-show">
               <i class="sidebar icon"></i>
           </a>
        </nav>
        <div class="ui attached pointing menu">
            <div class="ui container">
                <a href="#" class="active item">发布</a>
                <a href="#" class="item">列表</a>
            </div>
            
        </div>
        <!-- 中间内容 -->
        <div class="m-padded-tb-lager m-container">
            <div class="ui container">
                <div class="ui success message" th:unless="${#strings.isEmpty(message)}">
                    <i class="close icon"></i>
                    <div class="header">提示：</div>
                    <p th:text="${message}"></p>
                </div>

                <form action="/admin/types1" method="post"  class="ui form">
<input type="hidden" name="id" th:value="${type.id}">
               <div class="required field">
             <div class="ui left labeled input">
              <div class="ui teal basic label">名称</div>
           
                 <input type="text" name="name"  th:value="${type.name}" />
           </div>
           </div>




                      <div class="ui error message"></div>
                      <div class="ui right aligned container">
                          <button type="button" class="ui basic button" onclick="windows.history.go(-1)">返回</button>
                          <button class="ui teal button">提交</button>
                      </div>
           </form>
           
             </div>
              
            </div>
            
          
        <!-- 底部footer -->
        <footer class="ui inverted vertical segment m-padded-tb-massive">
            <div class="ui center aligned container">
                <div class="ui inverted divided stackable grid">
                 <div class="three wide column">
                     <img src="../../static/img/logo-icon-3.png" class="ui rounded image" alt="" style="width: 110px;"/>
                 </div>
                 <div class="three wide column">
                     <h4 class="ui inverted header">最新博客</h4>
                     <div class="ui inverted link list">
                         <a href="#" class="item">用户故事(User Story)</a>
                         <a href="#" class="item">用户故事(User Story)</a>
                         <a href="#" class="item">用户故事(User Story)</a>
                     </div>
                 </div>
                 <div class="three wide column"><h4 class="ui inverted header">联系我</h4>
                     <div class="ui inverted link list">
                         <a href="#" class="item">手机：17877887975</a>
                         <a href="#" class="item">QQ:2805319253</a>
                         <a href="#" class="item">邮箱：2805319253@qq.com</a>
                     </div></div>
                 
                 <div class="seven wide column">
                     <h4 class="ui inverted header">简介</h4>
                     <p>这是我的个人博客，我会与大家分享我的各种学习体会。</p>
                 </div>
                 
                </div>
                <div class="ui inverted section divider"></div>
               <p>韦建韩 就读于广西科技大学-启迪数字学院-软件工程专业</p>
                </div>
        </footer>
        </div>
        <script th:src="@{/Semantic-UI-CSS-master/jquery.js}"></script>
        
        <script th:src="@{/Semantic-UI-CSS-master/semantic.min.js}"></script>
        <script th:src="@{/lib/editormd/editormd.min.js}"></script>
        <script>
            var contentEditor;
            
                        $(function() {
                            contentEditor = editormd("md-content", {
                                width   : "100%",
                                height  : 640,
                                syncScrolling : "single",
                                path    : "../lib/editormd/lib/"
                            });
                            
                            /*
                            // or
                            testEditor = editormd({
                                id      : "test-editormd",
                                width   : "90%",
                                height  : 640,
                                path    : "../lib/"
                            });
                            */
                        });
            
            
            $(".menu.toggle").click(function(){
                $(".m-item").toggleClass("m-mobile-hide");
            });
       $('.ui.dropdown').dropdown();
       $('.ui.form').form({
           fields: {
               title: {
                   identifier: "name",
                   rules: [{
                       type: "empty",
                       prompt: "请输入分类名称"
                   }]
               }
           }
       })
            $('.message.close').on('click',function () {
                $(this).closest('.message')
                    .transition('fade');
            })
        </script>
    </body>
</html>
